home *** CD-ROM | disk | FTP | other *** search
-
-
-
- kkkkmmmmeeeemmmm____zzzzaaaalllllllloooocccc((((DDDD3333)))) kkkkmmmmeeeemmmm____zzzzaaaalllllllloooocccc((((DDDD3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc - allocate and clear space from kernel free memory
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_kkkk_mmmm_eeee_mmmm_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
- _vvvv_oooo_iiii_dddd _****_kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc_((((_ssss_iiii_zzzz_eeee______tttt _s_i_z_e_,,,, _iiii_nnnn_tttt _f_l_a_g_))))_;;;;
-
- AAAArrrrgggguuuummmmeeeennnnttttssss
- _s_i_z_e Number of bytes to allocate.
-
- _f_l_a_g Specifies whether the caller is willing to sleep waiting for
- memory, also other flags accepted by _kkkk_mmmm_eeee_mmmm______aaaa_llll_llll_oooo_cccc.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc allocates _s_i_z_e bytes of kernel memory, clears the memory by
- filling it with zeros, and returns a pointer to the allocated memory. If
- _f_l_a_g is set to _KKKK_MMMM______SSSS_LLLL_EEEE_EEEE_PPPP, the caller will sleep if necessary until the
- specified amount of memory is available. If _f_l_a_g is set to _KKKK_MMMM______NNNN_OOOO_SSSS_LLLL_EEEE_EEEE_PPPP,
- the caller will not sleep, but _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc will return _NNNN_UUUU_LLLL_LLLL if the
- specified amount of memory is not immediately available.
-
- RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
- Upon successful completion, _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc returns a pointer to the
- allocated memory. If _KKKK_MMMM______NNNN_OOOO_SSSS_LLLL_EEEE_EEEE_PPPP is specified and sufficient memory is
- not immediately available, _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc returns a _NNNN_UUUU_LLLL_LLLL pointer. If _s_i_z_e
- is set to _0000, _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc returns _NNNN_UUUU_LLLL_LLLL regardless of the value of _f_l_a_g.
-
- UUUUSSSSAAAAGGGGEEEE
- Kernel memory is a limited resource and should be used judiciously.
- Memory allocated using _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc should be freed as soon as possible.
- Drivers should not use local freelists for memory or similar schemes that
- cause the memory to be held for longer than necessary.
-
- Since holding memory allocated using _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc for extended periods of
- time (e.g allocating memory at system startup and never freeing it) can
- have an adverse effect on overall memory usage and system performance,
- memory needed for such extended periods should be statically allocated
- whenever possible.
-
- The address returned by a successful call to _kkkk_mmmm_eeee_mmmm______zzzz_aaaa_llll_llll_oooo_cccc is word-aligned.
-
- LLLLeeeevvvveeeellll
- Initialization or Base if _f_l_a_g is set to _KKKK_MMMM______SSSS_LLLL_EEEE_EEEE_PPPP.
-
- Initialization, Base or Interrupt if _f_l_a_g is set to _KKKK_MMMM______NNNN_OOOO_SSSS_LLLL_EEEE_EEEE_PPPP.
-
- SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
- May sleep if _f_l_a_g is set to _KKKK_MMMM______SSSS_LLLL_EEEE_EEEE_PPPP.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- kkkkmmmmeeeemmmm____zzzzaaaalllllllloooocccc((((DDDD3333)))) kkkkmmmmeeeemmmm____zzzzaaaalllllllloooocccc((((DDDD3333))))
-
-
-
- Driver-defined basic locks, read/write locks, and sleep locks may be held
- across calls to this function if _f_l_a_g is _KKKK_MMMM______NNNN_OOOO_SSSS_LLLL_EEEE_EEEE_PPPP, but may not be held
- if _f_l_a_g is _KKKK_MMMM______SSSS_LLLL_EEEE_EEEE_PPPP.
-
- Driver-defined sleep locks may be held across calls to this function
- regardless of the value of _f_l_a_g.
-
- RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
- _kkkk_mmmm_eeee_mmmm______aaaa_llll_llll_oooo_cccc(D3), _kkkk_mmmm_eeee_mmmm______ffff_rrrr_eeee_eeee(D3)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-